Always set the max width or height to at least 1, since 0 triggers bugs in
authorOwen Taylor <otaylor@redhat.com>
Sun, 21 Feb 1999 22:12:00 +0000 (22:12 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sun, 21 Feb 1999 22:12:00 +0000 (22:12 +0000)
Sun Feb 21 17:14:44 1999  Owen Taylor  <otaylor@redhat.com>

* gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always
 set the max width or height to at least 1, since 0
 triggers bugs in some window managers. (The window
"pops out" of the frame in fvwm)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdkwindow.c
gdk/x11/gdkwindow-x11.c

index a975fda4bc3123f33f0698caaac22c148f7d6477..cc4178a26f488084eca4ee5bd344dc8ed95123e9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Sun Feb 21 17:14:44 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always
+        set the max width or height to at least 1, since 0 
+        triggers bugs in some window managers. (The window 
+       "pops out" of the frame in fvwm)
+
 Sun Feb 21 16:16:22 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c:
index a975fda4bc3123f33f0698caaac22c148f7d6477..cc4178a26f488084eca4ee5bd344dc8ed95123e9 100644 (file)
@@ -1,3 +1,10 @@
+Sun Feb 21 17:14:44 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always
+        set the max width or height to at least 1, since 0 
+        triggers bugs in some window managers. (The window 
+       "pops out" of the frame in fvwm)
+
 Sun Feb 21 16:16:22 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c:
index a975fda4bc3123f33f0698caaac22c148f7d6477..cc4178a26f488084eca4ee5bd344dc8ed95123e9 100644 (file)
@@ -1,3 +1,10 @@
+Sun Feb 21 17:14:44 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always
+        set the max width or height to at least 1, since 0 
+        triggers bugs in some window managers. (The window 
+       "pops out" of the frame in fvwm)
+
 Sun Feb 21 16:16:22 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c:
index a975fda4bc3123f33f0698caaac22c148f7d6477..cc4178a26f488084eca4ee5bd344dc8ed95123e9 100644 (file)
@@ -1,3 +1,10 @@
+Sun Feb 21 17:14:44 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always
+        set the max width or height to at least 1, since 0 
+        triggers bugs in some window managers. (The window 
+       "pops out" of the frame in fvwm)
+
 Sun Feb 21 16:16:22 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c:
index a975fda4bc3123f33f0698caaac22c148f7d6477..cc4178a26f488084eca4ee5bd344dc8ed95123e9 100644 (file)
@@ -1,3 +1,10 @@
+Sun Feb 21 17:14:44 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always
+        set the max width or height to at least 1, since 0 
+        triggers bugs in some window managers. (The window 
+       "pops out" of the frame in fvwm)
+
 Sun Feb 21 16:16:22 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c:
index a975fda4bc3123f33f0698caaac22c148f7d6477..cc4178a26f488084eca4ee5bd344dc8ed95123e9 100644 (file)
@@ -1,3 +1,10 @@
+Sun Feb 21 17:14:44 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always
+        set the max width or height to at least 1, since 0 
+        triggers bugs in some window managers. (The window 
+       "pops out" of the frame in fvwm)
+
 Sun Feb 21 16:16:22 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c:
index a975fda4bc3123f33f0698caaac22c148f7d6477..cc4178a26f488084eca4ee5bd344dc8ed95123e9 100644 (file)
@@ -1,3 +1,10 @@
+Sun Feb 21 17:14:44 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always
+        set the max width or height to at least 1, since 0 
+        triggers bugs in some window managers. (The window 
+       "pops out" of the frame in fvwm)
+
 Sun Feb 21 16:16:22 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c:
index 32ced4397ef365a6f72dec1809b27c3ee798f23e..65eaa779711beb04bc35c965ee09b9e47b159e8d 100644 (file)
@@ -1115,8 +1115,8 @@ gdk_window_set_geometry_hints (GdkWindow      *window,
   if (geom_mask & GDK_HINT_MAX_SIZE)
     {
       size_hints.flags |= PMaxSize;
-      size_hints.max_width = geometry->max_width;
-      size_hints.max_height = geometry->max_height;
+      size_hints.max_width = MAX (geometry->max_width, 1);
+      size_hints.max_height = MAX (geometry->max_height, 1);
     }
   
   if (geom_mask & GDK_HINT_BASE_SIZE)
index 32ced4397ef365a6f72dec1809b27c3ee798f23e..65eaa779711beb04bc35c965ee09b9e47b159e8d 100644 (file)
@@ -1115,8 +1115,8 @@ gdk_window_set_geometry_hints (GdkWindow      *window,
   if (geom_mask & GDK_HINT_MAX_SIZE)
     {
       size_hints.flags |= PMaxSize;
-      size_hints.max_width = geometry->max_width;
-      size_hints.max_height = geometry->max_height;
+      size_hints.max_width = MAX (geometry->max_width, 1);
+      size_hints.max_height = MAX (geometry->max_height, 1);
     }
   
   if (geom_mask & GDK_HINT_BASE_SIZE)